xl: error out if vNUMA specifies more vcpus than pcpus
authorWei Liu <wei.liu2@citrix.com>
Mon, 17 Aug 2015 18:57:00 +0000 (19:57 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Fri, 21 Aug 2015 07:45:55 +0000 (08:45 +0100)
commit51086e196ee6531f7cb45f23943dc8daf2d1527b
treee2127d173912524b6541ab117f57264b5eea6d5a
parent649f0eb7f4b8eb0d5918462e537bc3186f6d52cf
xl: error out if vNUMA specifies more vcpus than pcpus

... but allow user to override that check by specifying maxvcpus= in xl
configuration file.

Note that the code is constructed such that the fallout is dealt with
after parsing. We can live with that because though it wastes a bit of
cpu cycles but it is still functionally correct and I would like to have
a clear split between parsing and dealing with fallouts.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Reviewed-by: Dario Faggioli <dario.faggioli@citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
tools/libxl/xl_cmdimpl.c